// **********************************************************************
//
// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

// Ice version 3.1.1

// Freeze types in this file:
// name="StringIntMap", key="string", value="int"

#ifndef __StringIntMap_h__
#define __StringIntMap_h__

#include <Freeze/Map.h>

#ifndef ICE_IGNORE_VERSION
#   if ICE_INT_VERSION / 100 != 301
#       error Ice version mismatch!
#   endif
#   if ICE_INT_VERSION % 100 < 1
#       error Ice patch level mismatch!
#   endif
#endif

class StringIntMapKeyCodec
{
public:

    static void write(const ::std::string&, Freeze::Key&, const ::Ice::CommunicatorPtr&);
    static void read(::std::string&, const Freeze::Key&, const ::Ice::CommunicatorPtr&);
    static const std::string& typeId();
};

class StringIntMapValueCodec
{
public:

    static void write(::Ice::Int, Freeze::Value&, const ::Ice::CommunicatorPtr&);
    static void read(::Ice::Int&, const Freeze::Value&, const ::Ice::CommunicatorPtr&);
    static const std::string& typeId();
};

typedef Freeze::Map< ::std::string, ::Ice::Int, StringIntMapKeyCodec, StringIntMapValueCodec, Freeze::IceEncodingCompare > StringIntMap;

#endif
